package cn.com.twoke.game.common.entity.message;

import cn.com.twoke.game.common.constants.MessageType;

import static cn.com.twoke.game.common.constants.MessageType.STOP_GAME;

public class StopGameMessage extends  Message{

    private String gameId;
    private String roomId;
    private String userId;
    private boolean stopCurrentUser;


    public StopGameMessage(String gameId, String roomId, String userId, boolean stopCurrentUser) {
        this.gameId = gameId;
        this.roomId = roomId;
        this.userId = userId;
        this.stopCurrentUser = stopCurrentUser;
    }

    public boolean isStopCurrentUser() {
        return stopCurrentUser;
    }

    public void setStopCurrentUser(boolean stopCurrentUser) {
        this.stopCurrentUser = stopCurrentUser;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getGameId() {
        return gameId;
    }

    public void setGameId(String gameId) {
        this.gameId = gameId;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    @Override
    public MessageType getType() {
        return STOP_GAME;
    }
}
